# Project: dev
# Makefile created by Dev-C++ 5.11

CPP      = g++.exe
CC       = gcc.exe
LD		 = ld.exe
WINDRES  = windres.exe
OBJ      = ./../build/dev/block.o ./../build/dev/ide.o ./../build/dev/keyboard.o
LINKOBJ  = ./../build/dev/block.o ./../build/dev/ide.o ./../build/dev/keyboard.o
LIBS     = -static-libgcc -m32
INCS     = -I"./../include" -I"./../include/dev" -I"./../include/std"
CXXINCS  = -I"./../include" -I"./../include/dev" -I"./../include/std"
BIN      = ../build/dev/dev.o
CXXFLAGS = $(CXXINCS) -m32 -O3 -pipe
CFLAGS   = $(INCS) -m32 -O3 -pipe
RM       = rm.exe -f

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(LD) -r $(LINKOBJ) -o $(BIN)

./../build/dev/block.o: block.c
	$(CC) -c block.c -o ./../build/dev/block.o $(CFLAGS)

./../build/dev/ide.o: ide.c
	$(CC) -c ide.c -o ./../build/dev/ide.o $(CFLAGS)

./../build/dev/keyboard.o: keyboard.c
	$(CC) -c keyboard.c -o ./../build/dev/keyboard.o $(CFLAGS)
